package com.pwt.model;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Schema(name = "用户模型")
@Data
public class UserLoginModel {
    @Schema(description = "用户名",example = "admin")
    @NotBlank(message = "用户名不能为空")
    private String username;

    @Schema(description = "密码",example = "123456")
    @Size(min = 5,max = 10,message = "密码必须大于5位小于10位")
    private String password;
}
